import Mock from 'mockjs';
import api from '@/plugins/api';
import { getModelList, createOntology,nodeDetail,getParentNodes,saveOntology,deleteOntology,parentProperty,getEdgeDetail,addEdge,getElementList,importElement,saveElement,allGraphData } from './OntologyManagement';


Mock.mock(RegExp(api.ontologyModel.xinbiaoObj.getModelList), 'get', getModelList) //
Mock.mock(RegExp(api.ontologyModel.xinbiaoObj.createOntology), 'post', createOntology) //
Mock.mock(RegExp(api.ontologyModel.xinbiaoObj.editOntology), 'post', createOntology) //
Mock.mock(RegExp(api.ontologyModel.xinbiaoObj.getNodeDetail), 'get', nodeDetail) //
Mock.mock(RegExp(api.ontologyModel.xuekuiObj.getParentNodes), 'get', getParentNodes) //
Mock.mock(RegExp(api.ontologyModel.xuekuiObj.saveNode), 'post', saveOntology) //
Mock.mock(RegExp(api.ontologyModel.xuekuiObj.editNode), 'post', saveOntology) //
Mock.mock(RegExp(api.ontologyModel.xuekuiObj.deleteNode), 'post', deleteOntology) //
Mock.mock(RegExp(api.ontologyModel.xinbiaoObj.getParentProperty), 'get', parentProperty) //
Mock.mock(RegExp(api.ontologyModel.xinbiaoObj.getRelationDetail), 'get', getEdgeDetail) //
Mock.mock(RegExp(api.ontologyModel.xuekuiObj.saveEdge), 'post', getEdgeDetail) //
Mock.mock(RegExp(api.ontologyModel.xuekuiObj.editEdge), 'post', getEdgeDetail) //
Mock.mock(RegExp(api.ontologyModel.xuekuiObj.getAvailableElementData),'post',getElementList)
Mock.mock(RegExp(api.ontologyModel.xuekuiObj.importElement),'post',importElement)
Mock.mock(RegExp(api.ontologyModel.xuekuiObj.saveElement),'post',saveElement)
Mock.mock(RegExp(api.ontologyModel.xuekuiObj.getAllData),'get',allGraphData)

